<?php
require dirname(__FILE__)."/../source/channelComments.Class.php";

$cc = new channelComments("127.0.0.1", "root", "", "comments");

$arrCmtInfo = array();
$arrCmtInfo["intUid"] = 1;
$arrCmtInfo["intFromUid"] = 2;
$arrCmtInfo["intFromIp"]  = 12345678;
$arrCmtInfo["strFromUidURL"] = "xxoo";
$arrCmtInfo["strFromUname"]  = "aabb";
$arrCmtInfo["strCmtContent"] = "this is comments.";

$cc->addComment($arrCmtInfo);
$cc->delComment(1, 1);
var_dump($cc->commentsList(1, 0, 30));

?>
